<template>
    <div class="pjzi">
        <section  >
            <div class="head">
                <div class="left">
                    <span class="sp0 tx"><van-icon name="user-circle-o" /></span>
                    <span class="sp0">{{user}}</span>
                </div>
                <div class="right">
                    <van-rate v-model="value" />
                </div>
            </div>
            <main>
                <p>{{ptext}}</p>
                <img v-if="image!=''" :src="image" alt="">
                <p><span>{{cit}}</span><span>{{font}}</span><span>{{timer}}</span></p>
            </main>
            <hr/>
       </section>

    </div>
</template>

<script>
// import {getlink} from "@/api/getapi.js"
export default {
    data(){
        return {
             value: 3,
            //  arr:[]
        }
    },
    props:["user","ptext","image","cit","font","timer"]
}
</script>

<style scoped>
    .pjzi{
        width: 100%;
        font-size: 0.12rem;
        box-sizing: border-box;
        padding: 0.1rem;
    }
    .head{
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin: 0.1rem 0;
        padding: 0.1rem;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
    }
    .sp0{
        margin: 0.1rem;
        font-size: 0.13rem;
    }
    .tx{
        font-size: 0.3rem;
        vertical-align: middle;
    }
    img{
        width: 0.8rem;
        height: 0.8rem;
    }
    p{
        padding: 0.1rem 0;
    }
    main{
        width: 100%;
        border-bottom: 1px solid #ddd;
        margin-bottom: 0.2rem;
    }
    button{
        outline: none;
        margin: 0.1rem;
        padding: 0.05rem 0.1rem;
    }
    input{
        margin: 0 auto;
        height: 0.3rem;
        width: 80%;
        outline: none;
        text-indent: 0.1rem;
    }
</style>